-
-
Notifications
You must be signed in to change notification settings - Fork 200
initrd/etc/gui_functions pause_automatic_boot: show TOTP code while waiting for automatic boot is set and hotp is valid #1993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
b5188bc to
dbd095a
Compare
Old OP (in link of deprecated superseeded commit e0fb3e7)This pull request enhances the user experience during the automatic boot countdown in the User experience improvements:
In action under qemu-coreboot-whiptail-tpm2-hotp-prod (not silent, not debug):
|
|
Small UX bug to fix, time shown on screen is updated every 2 seconds, not every seconds. |
dbd095a to
25b3d80
Compare
|
Self reviewed. @JonathonHall-Purism comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the pause_automatic_boot function to provide an enhanced user experience during the automatic boot countdown with live updates and optional TOTP display. The changes replace a simple single-line timeout with an interactive countdown loop.
- Implements live countdown display that updates every second with current UTC timestamp
- Adds optional TOTP code display when TPM is enabled and QR code display is not skipped
- Enables real-time user interruption by checking for keypresses every second
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
25b3d80 to
db9f55e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…OTP code while waiting for automatic boot when a default boot is set and HOTP is valid Signed-off-by: Thierry Laurion <insurgo@riseup.net>
db9f55e to
46f3091
Compare
|
@Tonux599 comments? |
This is only for HOTP configs? I can't test that, however code looks fine to me. Would be nice if this could be extended to non-hotp configs also. |
@Tonux599 then if not in pause waiting for automatic boot delay to come to 0, this could be put in place while waiting user to press Esc keyboard key before typing TPM DUK passphrase? Otherwise as of now, TOTP is only shown from Heads main menu. |
I don't think in TPM DUK, as not everyone will use that (I trust my TPM to measure the boot, but not to store my disk encryption key). Lines 660 to 662 in 46f3091
If above was changed to something like (pseudo-ish code): I think that ought to catch all? |
Ha. No Trust in TPM for DUK. Well, I welcome improvement to #2024 since vendors use HOTP+automatic boot, not necessary TPM DUK (not forced) but there is no other current automatic boot as of now. |




This pull request refactors the
pause_automatic_bootfunction ininitrd/etc/gui_functionsto improve user experience and add TOTP display support during the automatic boot countdown. The main changes include switching to a live countdown display, optionally showing the current TOTP code, and handling user interruption more interactively.User experience improvements:
Interactive interruption:
In action under qemu-coreboot-whiptail-tpm2-hotp-prod (not silent, not debug):


